<?php

namespace app\admin\event;

use app\admin\facade\ThinkAddons;

class CheckAddons
{
    use \app\common\traits\JumpTrait;
    public function handle($_addon_name)
    {
        $config = ThinkAddons::getPluginIni($_addon_name);
        if (strstr($config, 'status = 0')) {
            $this->error('请开启插件！');
        }
    }
}
